int serIN;

void setup()
{
 Serial.begin(9600);
 Serial1.begin(9600); 
 Serial2.begin(9600); 
 Serial.println("Serial connection started");
 Serial.println("Serial connection 1 started");
 Serial.println("Serial connection 2 started");
}

void loop()
{
 while (Serial1.available()) 
 {
  serIN = Serial1.read();
  Serial.write(serIN);
  Serial1.write(serIN);
  Serial2.write(serIN+1);
 }  
}

